import service from '@/utils/request'

const SpecApi = {
  listSpec:function(data){
    return service.get('spec/page', {params:data})
  },
  addSpec:function(data){
      return service.post('spec', data)
  },
  editSpec:function(data){
      return service.put('spec', data)
  },
  deleteSpec:function(data){
      return service.put('spec/delete', data)
  },
  getSpecInfo(data){
      return service.get('spec', {params:data})
  },
  /*specList:function(data){
    return service.get("spec/list",{params:data})
  },*/
  listIdName:function(data){
    return service.get('spec/listIdName', {params:data})
  },
  bandRelation:function(data){
    return service.put('spec/updateRelations', data)
  },
  getSpecIdsByRelation:function(data){
    return service.get("spec/getSpecIdsByRelation",{params:data})
  },
  getCheckoutInfo:function(data){
    return service.get("business/getCheckoutInfo",{params:data})
  },
}

export default SpecApi
